home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 / Programming Windows 95.iso / code / CHAP12 / GADGETS.H < prev    next >
Text File  |  1995-12-31  |  4KB  |  93 lines

  1. // Resource definitions.
  2. #define IDM_FILE_NEW                    100    // -- Menu Commands --
  3. #define IDM_FILE_OPEN                   101
  4. #define IDM_FILE_SAVE                   102
  5. #define IDM_FILE_SAVEAS                 103
  6. #define IDM_FILE_PRINT                  104
  7. #define IDM_FILE_PREVIEW                105
  8. #define IDM_FILE_EXIT                   106
  9. #define IDM_EDIT_UNDO                   200
  10. #define IDM_EDIT_CUT                    201
  11. #define IDM_EDIT_COPY                   202
  12. #define IDM_EDIT_PASTE                  203
  13. #define IDM_EDIT_PROP                   204
  14. #define IDM_TB_HELP                     250
  15. #define IDM_TB_DELETE                   251
  16. #define IDM_IGNORESIZE                  300
  17. #define IDM_STRINGS                     301
  18. #define IDM_LARGEICONS                  302
  19. #define IDM_SMALLICONS                  303
  20. #define IDM_NODIVIDER                   400
  21. #define IDM_WRAPABLE                    401
  22. #define IDM_TOP                         402
  23. #define IDM_BOTTOM                      403
  24. #define IDM_NOMOVEY                     404
  25. #define IDM_NOPARENTALIGN               405
  26. #define IDM_NORESIZE                    406
  27. #define IDM_ADJUSTABLE                  407
  28. #define IDM_ALTDRAG                     408
  29. #define IDM_TOOLTIPS                    409
  30. #define IDM_TB_CHECK                    500
  31. #define IDM_TB_ENABLE                   501
  32. #define IDM_TB_HIDE                     502
  33. #define IDM_TB_INDETERMINATE            503
  34. #define IDM_TB_PRESS                    504
  35. #define IDM_TB_BUTTONCOUNT              505
  36. #define IDM_TB_GETROWS                  506
  37. #define IDM_TB_CUSTOMIZE                507
  38. #define IDM_STAT_IGNORESIZE             600
  39. #define IDM_STAT_SIZEGRIP               700
  40. #define IDM_STAT_TOP                    701
  41. #define IDM_STAT_BOTTOM                 702
  42. #define IDM_STAT_NOMOVEY                703
  43. #define IDM_STAT_NOPARENTALIGN          704
  44. #define IDM_STAT_NORESIZE               705
  45. #define IDM_ST_GETBORDERS               800
  46. #define IDM_ST_GETPARTS                 801
  47. #define IDM_ST_SETTEXT                  802
  48. #define IDM_ST_SIMPLE                   803
  49. #define IDM_NOTIFICATIONS_CLEAR         900
  50. #define IDM_VIEW_TOOLBAR                1000
  51. #define IDM_VIEW_STATUS                 1001
  52. #define IDM_VIEW_NOTIFICATIONS          1002
  53. #define IDM_COMBOBOX                    4000
  54. #define IDI_APP                         101    // -- Icons --
  55. #define IDS_MAIN_MENU                   71     // -- Strings --
  56. #define IDS_MAIN_MENU1                  72
  57. #define IDS_MAIN_MENU2                  73
  58. #define IDS_MAIN_MENU3                  74
  59. #define IDS_MAIN_MENU4                  75
  60. #define IDS_MAIN_MENU5                  76
  61. #define IDS_TOOLBAR_MENU                80
  62. #define IDS_TOOLBAR_MENU1               81
  63. #define IDS_TOOLBAR_MENU2               82
  64. #define IDS_TOOLBAR_MENU3               83
  65. #define IDS_STATUSBAR_MENU              90
  66. #define IDS_STATUSBAR_MENU1             91
  67. #define IDS_STATUSBAR_MENU2             92
  68. #define IDS_STATUSBAR_MENU3             93
  69.  
  70. #define IDC_TB_COMBOBOX                 2000  // -- Toolbar combo box
  71.  
  72. // Toolbar functions.
  73. HWND InitToolBar (HWND hwndParent) ;
  74. HWND RebuildToolBar (HWND hwndParent, WORD wFlag) ;
  75. void ToolBarMessage (HWND hwndTB, WORD wMsg) ;
  76. LRESULT ToolBarNotify (HWND hwnd, WPARAM wParam, LPARAM lParam) ;
  77.  
  78. // Tooltip functions.
  79. BOOL InitToolTip (HWND hwndToolBar, HWND hwndComboBox) ;
  80. BOOL RelayToolTipMessage (LPMSG pMsg) ;
  81. void CopyToolTipText (LPTOOLTIPTEXT lpttt) ;
  82.  
  83. // Status bar functions.
  84. HWND InitStatusBar (HWND hwndParent) ;
  85. HWND RebuildStatusBar (HWND hwndParent, WORD wFlag) ;
  86. void StatusBarMessage (HWND hwndSB, WORD wMsg) ;
  87. LRESULT Statusbar_MenuSelect (HWND, WPARAM, LPARAM) ;
  88.  
  89. // Notification window functions.
  90. HWND ViewNotificationsToggle (HWND hwnd) ;
  91. void DisplayNotificationDetails (WPARAM wParam, LPARAM lParam) ;
  92. void ClearNotificationList () ;
  93.